package com.wyw.design.model.learning.behavioral.mediator;

/**
 * @Title   买家-同事角色
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/18 10:56
 * Update History:
 * Author        Time            Content
 */
public class ColleagueBuyer extends Colleaguer {
    public ColleagueBuyer(MeditorCompany meditorCompany) {
        super(meditorCompany);
    }
    public void send(String message) {
        meditorCompany.publish(message, this);
    }
    public void accept(String message) {
        System.out.println("买家接收到的消息是：" + message);
    }
}
